// extern crate adder;
use adder;

#[test]
fn exploration() {
    assert_eq!(2 + 2, 4);
}

#[test]
fn larger_can_hold_smaller() {
    let data1 = adder::Rectangle {
        length: 23,
        width: 40,
    };
    let data2 = adder::Rectangle {
        length: 13,
        width: 10,
    };
    assert!(data1.can_hold(data2));
}

#[test]
fn it_adds_two() {
    assert_eq!(4, adder::add_two(2));
}

#[test]
fn greeting_contains_name() {
    let name = adder::greeting("Carol");
    assert!(
        name.contains("Carol"),
        "Greeting did not contain name, value was `{}`",
        name
    );
}
